var rule =  {
    title: '可可影视[优]虎虎',
    host: 'https://www.keke8.app',
    url: 'https://www.keke8.app/show/fyclass-fyfilter-fypage.html',
    filter_url: '{{fl.类型}}-{{fl.地区}}-{{fl.语言}}-{{fl.年份}}-{{fl.排序}}',
    searchUrl: 'https://www.keke8.app/search?k=**&page=fypage',
    searchable: 2,
    quickSearch: 0,
    filterable: 1,
    headers: {
        'User-Agent': 'Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36',
    },
    class_parse: '#nav-swiper&&.nav-swiper-slide;a&&Text;a&&href;/(\\w+).html',
    cate_exclude: 'Netflix|今日更新|专题列表|排行榜|首页|留言|APP|下载|资讯|新闻|动态',
    tab_exclude: '可可影视提供|猜你|喜欢|下载|剧情|榜|评论',
    tab_order: [
        '超清',
        '蓝光',
        '极速蓝光',
    ],
    tab_remove: [
        '4K(高峰不卡)',
    ],
    play_parse: true,
    lazy: $js.toString(() => {
        let html =  request(input,{})
       // log(html)
        const regex = /src:\s*"([^"]+)"/;
        const match = html.match(regex);
        if (match && match[1]) {
        input = {
            parse: 0,
            url: match[1],
            jx: 0 ,
            }
        } else {
        input = {
            parse: 1,
            url: input,
            jx: 0 ,
            }
       }

    }),
    limit: 20,
    推荐: '.section-box:eq(2)&&.module-box-inner&&.module-item;*;*;*;*',
    double: false,
    一级: '.module-box-inner&&.module-item;.v-item-title:eq(1)&&Text;img:last-of-type&&data-original;.v-item-bottom&&span:eq(1)&&Text;a&&href',
    二级: {
        title: '.detail-pic&&img&&alt;.detail-tags&&a&&Text',
        img: '.detail-pic&&img&&data-original',
        desc: '.detail-info-row-main:eq(-2)&&Text;.detail-tags&&a&&Text;.detail-tags&&a:eq(1)&&Text;.detail-info-row-main:eq(1)&&Text;.detail-info-row-main&&Text',
        content: '.detail-desc&&Text',
        tabs: 'body&&.source-item-label',
        lists: '.episode-list:eq(#id) a',
    },
    搜索: '.search-result-list&&a;.title:eq(1)&&Text;*;.search-result-item-header&&Text;a&&href;.desc&&Text',
    预处理: "js:\n        let html = request(rule.host);\n        let scripts = pdfa(html, 'script');\n        let img_script = scripts.find(it => pdfh(it, 'script&&src').includes('rdul.js'));\n        if (img_script) {\n            let img_url = img_script.match(/src=\"(.*?)\"/)[1];\n            //console.log(img_url);\n            let img_html = request(img_url);\n            let img_host = img_html.match(/'(.*?)'/)[1];\n            log(img_host);\n            rule.图片替换 = rule.host + '=>' + img_host;\n        }\n    ",
    filter: 'H4sIAAAAAAAAA+2Zz08bRxTH/xefOdgGtTi3HlqpUpVLe6hURREHV4qa0kN/qFWEZLANxhBsEDFx7AIpGEyCf0CQY9bY/md2Ztf/RWf95r0ZR+3LtqGRqviC+LzvzOzs7Nt531k/isQid755FPku+VvkTsS76In9jchMZHHh+6TNvyw8/Dk5briowiJbH6XrQVhBZGkGoneTP3378MGvOnz3068+++Lzr0kV66cyndWiBtJKVRVBDYC0fN3tV1EDQM3LXZgxNaAml4syVdKaBtLSebnyDDUAGjPf8vovcEwA0k63xXUPNQAac+XcK23jmAB0D7U1008Daas7o/IZagA0Zu6p66zjmADUb2tVFC6xHwBphWP/iNYagLRmRzgN1ABQc28O/WZbaxpoLo0Td3CIcwEw2qaf2ydtDLRmBw1vfQ3XDMB6tt5uzzzbAEjLDL2XNdQAUPOXN0XV0ZqGpXuBCmksqm2x6Zg0Jg6TxuL4dFRexUXoNkSlr0PYYnRSlt3WRAsdMg+gLa8Hk2NAiJZlsKWCuCwAtJx7NVk9x+UEoGsfnJl+GmhZNi6MpoHGfPXEaBpotoPXRtNA2uO2cE5QAzBjtu0x23Y/t3s9on4a6N6390W2i/cOQNd7feXXhng9AJMuh3JjqB4GZQwyXXWY8fp7skQPh5jmnCmoDiKHb5xhatHaVSj3OtiC2Np2RHtXZPFNMUxPojb0CirVy/gwiOkqg1dwXdehjcgO0T1nO24PtzENdqr7rYZfT5lUJw6V6pW+ao+DA9BNXh4bTYOVaEbTYCWv0TRYyWs0DVaCWv0Awi6CuL5ye33rfUcOswjxaHxOx8b/WvFZE5+143ETj9vxmInH7HjUxKMUj0XH0zwiLRa9r/4kqEH0zQbRoEHUNEhMNoglEtH76o9pMP9mg/mgwbxpICtXcg9fhUD7ODGxsHJrRzgFs7DEkwvr9W5EMYdXMaNXU7KEL0ncDntpfNJmXf1WRuRw350LpnFvRvX6b8yJpjDmhDMZnHHhjARrFrjizZghrrBzhoczJ0FhovvTEMYMceaEMzVBQaPraQhjQNSWZ56RhjBGkDNfo3RfdFdwLgC3bUAoHLllA8LZhH9rPTgLwVkP1l681ShxJoMzJ9PCOS2cH3DhnH1PhTNfl6llefNy4hxnQqFO/9wpkPsywGzebKHkCh5X1JgTqSzue+dU0AFCGQimaHMnZ5UH/vMUagCkVfKyjFVFQxjj4fUK1rEMgPodPhcV2mQAUPtk8YFKK5Dgf8rMYVGtPW53AHRUcy5Fo4g7PwBtd7/vyKe40hpMOd9Qa0jlfAxhLMJfWqDb+mbAlc23l/N3+1rwbmZg+s1g+s1gan1snlqf/7n1mbst6+M5L0T/CaYzAGnVA9dxvFOqwcQ0t2bb9NZAWuZCFI5Mb8OhDBP36Z8xTNznfa/SFUe0OQHQbPMrXqWJUwUwJffvP/1zBo2zBl8mF378YVFrGmie3M8zjGHiDJosP3NvaEcFmP6cMC0j0zLyIZeRj/55GTFh+ymPUqv+H5R6AJTqu1XRxBOLBppVuajON5jqANTvbOh38tgPgK639tjbPcDrAYQpK+yv28zJij3fMudw9tdt7myf7Yhm2rySAbz3zFEpsvQnK+G0IDwhAAA=',
    一级f: "js:\n    let urls = [\n    'https://keke5.app/show/1-----1-1.html',\n    'https://keke5.app/show/2-----1-1.html',\n    'https://keke5.app/show/3-----1-1.html',\n    'https://keke5.app/show/4-----1-1.html',\n    'https://keke5.app/show/6-----1-1.html',\n    ];\n    let filters = {};\n    pdfa = jsp.pdfa;\n    pdfh = jsp.pdfh;\n    for(let url of urls){\n    let fclass = url.match(/show\\/(\\d+)-/)[1];\n    console.log(fclass);\n    let html = request(url);\n    let tabs = pdfa(html, '.filter-row');\n    let data = [];\n    for (let tab of tabs) {\n        let title = pdfh(tab, 'strong&&Text').replace(':','');\n        let lis = pdfa(tab, 'a');\n        let _map = {key: title, name: title};\n        let value = [];\n        for (let li of lis) {\n            let n = pdfh(li, 'a&&Text').trim();\n            let v=n;\n            if(/全部|地区|类型/.test(n)){\n                v = '';\n            }else if(/综合/.test(n)){\n                v = '1';\n            }else{\n                v = pdfh(li,'a&&href');\n                try {\n                    v = v.match(/-(.*?)1-1.html/)[1].replace(/-/g,'');\n                }catch (e) {\n                    v = v.match(/-(.*?)-1.html/)[1].replace(/-/g,'');\n                }\n                v = decodeURIComponent(v);\n            }\n            value.push({\n                'n': n, 'v': v\n            });\n        }\n        _map['value'] = value;\n        data.push(_map);\n    }\n    filters[fclass] = data;\n    }\n    VODS = [filters];\n    console.log(gzip(JSON.stringify(filters)));\n    ",
    类型: '影视',
    homeUrl: 'https://www.keke8.app',
    detailUrl: '',
    二级访问前: '',
    timeout: 5000,
    encoding: 'utf-8',
    search_encoding: '',
    图片来源: '',
    图片替换: 'https://www.keke8.app=>https://vres.cfaqcgj.com',
    play_json: [],
    pagecount: {},
    proxy_rule: '',
    sniffer: false,
    isVideo: '',
    tab_rename: {},
}